/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package quanlisinhvien.dal;

import java.sql.ResultSet;
import quanlisinhvien.core.MyConnectUnit;

/**
 *
 * @author Marshmallow
 */
public class KhoaDAO {
    
    private MyConnectUnit conn;

    public KhoaDAO() {
        conn = new MyConnectUnit();
    }

    public KhoaDAO(MyConnectUnit conn) {
        this.conn = conn;
    }
    
    public ResultSet LayDanhSachKhoa(){
        try{            
            return this.conn.Select("KHOA");
        }
        catch (Exception ex){
            System.out.println("From KhoaDAO: " + ex.getMessage());
            return null;
        }
         
    }
    
}
